package com.study.demo.injector.module;

import android.app.Service;

import com.stduy.injector.PerService;

import dagger.Module;
import dagger.Provides;

/**
 * Created by shangsong on 17-3-6.
 */

@Module
public class ServiceModule {
    private final Service service;

    public ServiceModule(Service service) {
        this.service = service;
    }

    @Provides
    @PerService
    public Service provideService() {
        return service;
    }
}